-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unify doc links to use paths relative to doc folder #24979
Conversation
Could we have a check to prevent users to add newly wrong links in future PRs? This could also be another PR and will not block this one. |
Doesn't either markdownlint or the docs build already do that? |
BTW, there is a docasaurus eslint plugin, but it does not do link verification: https://docusaurus.io/docs/api/misc/@docusaurus/eslint-plugin |
Thanks, I will check this.
Looks like |
* upstream/main: Remove unnecessary content on docs (go-gitea#24976) Upgrade snap to node 20 (go-gitea#24990) Display file mode for new file and file mode changes (go-gitea#24966) Enable `vue/html-closing-bracket-spacing` eslint rule (go-gitea#24987) Fix repo level project - edit column (go-gitea#24982) Add v3.18 to TestPackageAlpine (go-gitea#24972) Fix admin config page error, use tests to cover the admin config and 500 error page (go-gitea#24965) Improve dropdown menus, remove inline styles (go-gitea#24954) Unify doc links to use paths relative to doc folder (go-gitea#24979) Rework button coloring, add focus and active colors (go-gitea#24507) Add PDF rendering via PDFObject (go-gitea#24086) Hide 'Mirror Settings' when unneeded, improve hints (go-gitea#24433) Consolidate the two review boxes into one (go-gitea#24738) API endpoint for changing/creating/deleting multiple files (go-gitea#24887) Repo list improvements, fix bold helper classes (go-gitea#24935) Add step start time to `ViewStepLog` (go-gitea#24980) Update from-binary.en-us.md (go-gitea#24975)
I was unable to create a backport for 1.19. @HesterG, please send one manually. 🍵
|
Changes: 1. Use uniform links types relative to doc folder (start with `doc/`) 2. According to [docusaurus links](https://docusaurus.io/docs/markdown-features/links), if `<a>` is used, the `href` is resolved as URL location, but not file location. So need to use `[text]({{< relref "path" >}})` instead.
Backport #24979 Changes: 1. Use uniform links types relative to doc folder (start with `doc/`) 2. According to [docusaurus links](https://docusaurus.io/docs/markdown-features/links), if `<a>` is used, the `href` is resolved as URL location, but not file location. So need to use `[text]({{< relref "path" >}})` instead.
…o-gitea#25000) Backport go-gitea#24979 Changes: 1. Use uniform links types relative to doc folder (start with `doc/`) 2. According to [docusaurus links](https://docusaurus.io/docs/markdown-features/links), if `<a>` is used, the `href` is resolved as URL location, but not file location. So need to use `[text]({{< relref "path" >}})` instead. (cherry picked from commit d2c9fb0)
Changes:
doc/
)<a>
is used, thehref
is resolved as URL location, but not file location. So need to use[text]({{< relref "path" >}})
instead.